#pragma once
#include "stdafx.h"
#include "SkinManager.h"
#include "interface.h"
class CFavorites : public CWindowWnd, public INotifyUI
{
public:
	CFavorites(HWND hParent, CDuiString URLName = _T(""), CDuiString URL = _T(""));
public:
	void Init();
public:
	LPCTSTR GetWindowClassName() const;
	UINT GetClassStyle() const;
	void OnFinalMessage(HWND /*hWnd*/);
	void Notify(TNotifyUI& msg);
	void OnLClick(CControlUI *pControl);
	LRESULT OnCreate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
	LRESULT OnClose(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
	LRESULT OnDestroy(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
	LRESULT OnNcActivate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
	LRESULT OnNcCalcSize(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
	LRESULT OnNcPaint(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
	LRESULT HandleMessage(UINT uMsg, WPARAM wParam, LPARAM lParam);
	LRESULT OnKillFocus(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
public:
	CPaintManagerUI m_pm;
private:
	HWND m_hParent;
	CEditUI *m_cUrlName;
	CEditUI *m_cUrl;
	CDuiString m_sURLName;
	CDuiString m_sURL;
};